<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/static/code/index.css">
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">

    <title>童程优创</title>
</head>
<body>
    <!-- 背景音乐 -->
<audio id="backgroundMusic" autoplay loop preload="auto">
        <source src="https://animates.oss-cn-beijing.aliyuncs.com/tcyc/music.MP3" type="audio/mpeg">
        您的浏览器不支持音频播放。
    </audio>
    
    <!-- 音乐控制按钮 -->
    <div class="music-control" id="musicControl">
        <div class="music-icon" id="musicIcon">
            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path d="M9 18V5L21 3V16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
                <circle cx="6" cy="18" r="3" stroke="currentColor" stroke-width="2"/>
                <circle cx="18" cy="16" r="3" stroke="currentColor" stroke-width="2"/>
            </svg>
        </div>
    </div>

    <div id="main">
        <div><img class="img" src="https://animates.oss-cn-beijing.aliyuncs.com/tcyc/bg.png" alt=""></div>
        
        <!-- 拼团模块 -->
        <div class="group-buy-section">
            <div class="group-buy-card">
                <!-- 课程信息 -->
                <div class="course-info">
                    <img src="https://animates.oss-cn-beijing.aliyuncs.com/tcyc/fenmian.png" alt="课程封面" class="course-image">
                    <div class="course-details">
                        <h3>邀请好友组团抢199抢购6课时！</h3>
                        <div class="price-info">
                            <span class="group-price">拼团价 ¥199</span>
                            <span class="group-size">亲友团</span>
                        </div>
                    </div>
                </div>
                
                <!-- 拼团选项 -->
                <div class="group-options">
                    <div class="option-item">
                        <span class="option-price">¥199</span>
                        <span class="option-desc">5人团</span>
                    </div>
                    <div class="option-item">
                        <span class="option-price">¥199</span>
                        <span class="option-desc">3人团</span>
                    </div>
                    <div class="option-item active">
                        <span class="option-price">¥199</span>
                        <span class="option-desc">2人团</span>
                    </div>
                </div>
                
                <!-- 立即开团按钮 -->
                <button class="start-group-btn" onclick="cli()">点此立即开团</button>
                
                <!-- 参与他人的团 -->
                <div class="join-others-section">
                    <div class="section-header">
                        22人发出邀请，去参加他们的团
                    </div>
                    
                    <div class="group-list" id="groupList">
                        <!-- 滚动的拼团列表将由JavaScript动态生成 -->
                    </div>
                </div>
            </div>
        </div>
        
        <div><img class="img" src="https://animates.oss-cn-beijing.aliyuncs.com/tcyc/bg2.png" alt=""></div>
        <div><img class="img" src="https://animates.oss-cn-beijing.aliyuncs.com/tcyc/bg1.png" alt=""></div>
        <div style="height: 20px;"></div>
        <!-- QR Code Section START -->
        <div id="payment-section" class="payment-section" style="display: none;">
            <div class="payment-card">
                <div class="payment-header">
                    <h3>完成支付</h3>
                    <p class="payment-subtitle">长按识别二维码完成支付</p>
                </div>
                
                <div class="qr-container">
                    <img src="/static/img/qr.jpg" alt="支付二维码" class="payment-qr">
                </div>
                
                <div class="payment-tips">
                    <div class="tip-item">
                        <span class="tip-icon">💰</span>
                        <span class="tip-text">支付成功后请联系我们</span>
                    </div>
                </div>
                
                <div class="contact-info">
                    <div class="contact-item">
                        <img src="/static/img/wechart.jpg" alt="微信二维码" class="wechat-qr">
                        <div class="contact-details">
                            <p class="contact-title">添加微信</p>
                            <p class="contact-desc">长按识别添加微信</p>
                        </div>
                    </div>
                    
                    <div class="contact-item">
                        <div class="phone-icon">📞</div>
                        <div class="contact-details">
                            <p class="contact-title">电话咨询</p>
                            <p class="contact-phone">15339292076</p>
                        </div>
                    </div>
                </div>
                
                <div class="payment-footer">
                    <p>支付遇到问题？请联系客服</p>
                </div>
            </div>
        </div>
        <!-- QR Code Section END -->

        <!-- 海报弹窗 -->
        <div id="poster-modal" class="poster-modal" style="display: none;">
            <div class="poster-overlay" onclick="closePoster()"></div>
            <div class="poster-container">
                <button class="poster-close-btn" onclick="closePoster()" title="关闭海报">&times;</button>
                <div class="poster-content">
                    <img src="https://animates.oss-cn-beijing.aliyuncs.com/tcyc/haibao.jpg" alt="分享海报" class="poster-image">
                    <div class="poster-tip">
                        <p>长按图片保存到相册，分享给好友一起拼团吧！</p>
                    </div>
                </div>
            </div>
        </div>

        <div class="footer">
            <ul class="foo" type="none">
                <li onClick="cli()">去拼团</li>
                <li onClick="showPoster()">分享海报</li>
            </ul>
            <div id="txt">
                <button class="close-btn" onclick="closeForm()" title="关闭表单">&times;</button>
                <h2>填写报名信息</h2>
                <form id="studentForm">
                <ul class="foom" type="none">
                    <li>
                        <p><span  class="xin">*</span>学员姓名</p>
                        <input type="text" id="name" name="name" required placeholder="请输入学员姓名">
                    </li>
                    <li>
                        <p><span  class="xin">*</span>手机号码</p>
                        <input type="text" type="tel" id="phone" name="phone" required placeholder="请输入手机号">
                    </li>
                    <li>
                        <p><span class="xin">*</span>年龄</p>
                        <input  type="number" type="number" id="age" name="age" min="5" max="25" required placeholder="请输入年龄">
                    </li>
                    <li>
                        <p><span  class="xin">*</span>年级</p>
                        <input type="number" id="grade" name="grade" min="1" max="12" required placeholder="请输入年级">
                    </li>
                    <li><button id="but" type="submit">提 交</button></li>
                </ul>
                </form>
                <div style="color:#fff; text-align: center;" id="studentMessage"></div>
            </div>
        </div>
    </div>
<script src="/static/code/index.js"></script>
</body>
</html>
